package com.ynny.librarysystemmanager.service;

import com.github.pagehelper.PageInfo;
import com.ynny.librarysystemmanager.entity.User;
import com.ynny.librarysystemmanager.entity.UserDTO;

import java.util.List;

public interface UserService {


    List<User> findAll(User user);


    User findOne(Integer userId);

    int addUser(User user);

    int updateUser(User user);

    //禁用用户
    int disableUser(Integer userId , Integer status);


    User login(String username, String password);

    boolean login(User user);

    PageInfo page(UserDTO dto);
}
